package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.*;
import java.util.Date;

@Data
@Alias(value = "dmcWatchAlarmClock")
@Table(name = "cn_dmc_watch_alarm_clock")
@EqualsAndHashCode(callSuper = true)
public class DmcWatchAlarmClock extends BaseEntity {

    private static final long serialVersionUID = -2528521013815681878L;

    /**
     * 设备Id
     */
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 闹钟类型 0-吃药提醒 1-喝水提醒 2-运动提醒 3-自定义1 4-自定义2 5-自定义3
     */
    @Column(name = "clock_type")
    private Integer clockType;

    /**
     * 闹钟开关 0-关 1-开
     */
    @Column(name = "clock_switch")
    private Integer clockSwitch;

    /**
     * 闹钟时间 范围0000-2359
     */
    @Column(name = "clock_time")
    private String clockTime;

    /**
     * 周一是否重复 0-不重复 1-重复
     */
    @Column(name = "repeat_mon")
    private Integer repeatMon;

    /**
     * 周二是否重复 0-不重复 1-重复
     */
    @Column(name = "repeat_tue")
    private Integer repeatTue;

    /**
     * 周三是否重复 0-不重复 1-重复
     */
    @Column(name = "repeat_wed")
    private Integer repeatWed;

    /**
     * 周四是否重复 0-不重复 1-重复
     */
    @Column(name = "repeat_thu")
    private Integer repeatThu;

    /**
     * 周五是否重复 0-不重复 1-重复
     */
    @Column(name = "repeat_fri")
    private Integer repeatFri;

    /**
     * 周六是否重复 0-不重复 1-重复
     */
    @Column(name = "repeat_sat")
    private Integer repeatSat;

    /**
     * 周日是否重复 0-不重复 1-重复
     */
    @Column(name = "repeat_sun")
    private Integer repeatSun;

    /**
     * 铃声类型 0 amr
     */
    @Column(name = "voice_type")
    private Integer voiceType;

    /**
     * 铃声文件
     */
    @Column(name = "voice_data")
    private byte[] voiceData;

    /**
     * 是否需要下发 0-不需要 1-需要
     */
    @Column(name = "is_need")
    private Integer isNeed;

    /**
     * 是否已经下发 0-待下发 1-已下发
     */
    @Column(name = "is_send")
    private Integer isSend;

}